﻿import request from '/@/utils/request';
enum Api {
  Addcar_color = '/api/car_color/add',
  Deletecar_color = '/api/car_color/delete',
  Updatecar_color = '/api/car_color/update',
  Pagecar_color = '/api/car_color/page',

  car_colorPidDropdown = "/api/car_color/car_colorPidDropdown"
}



export const getcar_colorPidDropdown= () =>
	request({
		url: Api.car_colorPidDropdown,
		method: 'get'
	});


// 增加系列
export const addcar_color = (params?: any) =>
	request({
		url: Api.Addcar_color,
		method: 'post',
		data: params,
	});

// 删除系列
export const deletecar_color = (params?: any) => 
	request({
			url: Api.Deletecar_color,
			method: 'post',
			data: params,
		});

// 编辑系列
export const updatecar_color = (params?: any) => 
	request({
			url: Api.Updatecar_color,
			method: 'post',
			data: params,
		});

// 分页查询系列
export const pagecar_color = (params?: any) => 
	request({
			url: Api.Pagecar_color,
			method: 'post',
			data: params,
		});


